AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(opennlp-sharp, 0.0.1)
AM_MAINTAINER_MODE

AC_PROG_INSTALL
AC_ISC_POSIX

AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
	AC_MSG_ERROR([You need to install pkg-config])
fi

AC_PATH_PROG(BASH, bash)
AC_PATH_PROG(CHMOD, chmod)
AC_PATH_PROG(SED, sed)
AC_PATH_PROG(GUNZIP, gunzip)

AC_PATH_PROG(MONO, mono)
AC_PATH_PROG(MCS, gmcs)

expanded_libdir=`( case $prefix in NONE) prefix=$ac_default_prefix ;; *) ;; esac
                   case $exec_prefix in NONE) exec_prefix=$prefix ;; *) ;; esac
                   eval echo $libdir )`
AC_SUBST(expanded_libdir)

expanded_datadir=`( case $prefix in NONE) prefix=$ac_default_prefix ;; *) ;; esac
                   case $exec_prefix in NONE) exec_prefix=$prefix ;; *) ;; esac
                   eval echo $datadir )`
AC_SUBST(expanded_datadir)

expanded_bindir=`( case $prefix in NONE) prefix=$ac_default_prefix ;; *) ;; esac
                   case $exec_prefix in NONE) exec_prefix=$prefix ;; *) ;; esac
                   eval echo $bindir )`
AC_SUBST(expanded_bindir)

AC_OUTPUT([
Makefile
src/Makefile
src/Lithium/Makefile
src/SharpEntropy/Makefile
src/OpenNLP/Makefile
src/ModelConverter/Makefile
src/ToolsExample/Makefile
src/ToolsExample/ConfigureDefines.cs
data/Makefile
])
